package com.kly.cashmall.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * @author zxp
 * @since 27/10/21
 */
public class ContactPostBean implements Serializable {
        @SerializedName("contacts")
        List<ContactPostBean.ContactVO> contacts;
        @SerializedName("calls")
        List<ContactPostBean.CallRecordVO> callRecords;
        @SerializedName("smsList")
        List<SmsBean> smsList;

        public List<ContactPostBean.ContactVO> getContacts() {
            return this.contacts;
        }

        public List<ContactPostBean.CallRecordVO> getCallRecords() {
            return this.callRecords;
        }

        public List<SmsBean> getSmsList() {
            return this.smsList;
        }

        public void setContacts(List<ContactPostBean.ContactVO> contacts) {
            this.contacts = contacts;
        }

        public void setCallRecords(List<ContactPostBean.CallRecordVO> callRecords) {
            this.callRecords = callRecords;
        }

        public void setSmsList(List<SmsBean> smsList) {
            this.smsList = smsList;
        }

        public boolean equals(Object o) {
            if (o == this) {
                return true;
            } else if (!(o instanceof ContactPostBean)) {
                return false;
            } else {
                ContactPostBean other = (ContactPostBean)o;
                if (!other.canEqual(this)) {
                    return false;
                } else {
                    label47: {
                        Object this$contacts = this.getContacts();
                        Object other$contacts = other.getContacts();
                        if (this$contacts == null) {
                            if (other$contacts == null) {
                                break label47;
                            }
                        } else if (this$contacts.equals(other$contacts)) {
                            break label47;
                        }

                        return false;
                    }

                    Object this$callRecords = this.getCallRecords();
                    Object other$callRecords = other.getCallRecords();
                    if (this$callRecords == null) {
                        if (other$callRecords != null) {
                            return false;
                        }
                    } else if (!this$callRecords.equals(other$callRecords)) {
                        return false;
                    }

                    Object this$smsList = this.getSmsList();
                    Object other$smsList = other.getSmsList();
                    if (this$smsList == null) {
                        if (other$smsList != null) {
                            return false;
                        }
                    } else if (!this$smsList.equals(other$smsList)) {
                        return false;
                    }

                    return true;
                }
            }
        }

        protected boolean canEqual(Object other) {
            return other instanceof ContactPostBean;
        }

        public int hashCode() {
            int result = 1;
            Object $contacts = this.getContacts();
            result = result * 59 + ($contacts == null ? 43 : $contacts.hashCode());
            Object $callRecords = this.getCallRecords();
            result = result * 59 + ($callRecords == null ? 43 : $callRecords.hashCode());
            Object $smsList = this.getSmsList();
            result = result * 59 + ($smsList == null ? 43 : $smsList.hashCode());
            return result;
        }

        public String toString() {
            return "ContactPostBean(contacts=" + this.getContacts() + ", callRecords=" + this.getCallRecords() + ", smsList=" + this.getSmsList() + ")";
        }

    public ContactPostBean() {
        }

    public ContactPostBean(List<ContactPostBean.ContactVO> contacts, List<ContactPostBean.CallRecordVO> callRecords, List<SmsBean> smsList) {
            this.contacts = contacts;
            this.callRecords = callRecords;
            this.smsList = smsList;
        }

        public static class CallRecordVO implements Serializable {
            @SerializedName("name")
            String name;
            @SerializedName("phone")
            String phone;
            @SerializedName("callType")
            String callType;
            @SerializedName("callTime")
            String callTime;
            @SerializedName("callDuration")
            String callDuration;

            public String getName() {
                return this.name;
            }

            public String getPhone() {
                return this.phone;
            }

            public String getCallType() {
                return this.callType;
            }

            public String getCallTime() {
                return this.callTime;
            }

            public String getCallDuration() {
                return this.callDuration;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public void setCallType(String callType) {
                this.callType = callType;
            }

            public void setCallTime(String callTime) {
                this.callTime = callTime;
            }

            public void setCallDuration(String callDuration) {
                this.callDuration = callDuration;
            }

            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                } else if (!(o instanceof ContactPostBean.CallRecordVO)) {
                    return false;
                } else {
                    ContactPostBean.CallRecordVO other = (ContactPostBean.CallRecordVO)o;
                    if (!other.canEqual(this)) {
                        return false;
                    } else {
                        label71: {
                            Object this$name = this.getName();
                            Object other$name = other.getName();
                            if (this$name == null) {
                                if (other$name == null) {
                                    break label71;
                                }
                            } else if (this$name.equals(other$name)) {
                                break label71;
                            }

                            return false;
                        }

                        Object this$phone = this.getPhone();
                        Object other$phone = other.getPhone();
                        if (this$phone == null) {
                            if (other$phone != null) {
                                return false;
                            }
                        } else if (!this$phone.equals(other$phone)) {
                            return false;
                        }

                        label57: {
                            Object this$callType = this.getCallType();
                            Object other$callType = other.getCallType();
                            if (this$callType == null) {
                                if (other$callType == null) {
                                    break label57;
                                }
                            } else if (this$callType.equals(other$callType)) {
                                break label57;
                            }

                            return false;
                        }

                        Object this$callTime = this.getCallTime();
                        Object other$callTime = other.getCallTime();
                        if (this$callTime == null) {
                            if (other$callTime != null) {
                                return false;
                            }
                        } else if (!this$callTime.equals(other$callTime)) {
                            return false;
                        }

                        Object this$callDuration = this.getCallDuration();
                        Object other$callDuration = other.getCallDuration();
                        if (this$callDuration == null) {
                            if (other$callDuration == null) {
                                return true;
                            }
                        } else if (this$callDuration.equals(other$callDuration)) {
                            return true;
                        }

                        return false;
                    }
                }
            }

            protected boolean canEqual(Object other) {
                return other instanceof ContactPostBean.CallRecordVO;
            }

            public int hashCode() {
                int result = 1;
                Object $name = this.getName();
                result = result * 59 + ($name == null ? 43 : $name.hashCode());
                Object $phone = this.getPhone();
                result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
                Object $callType = this.getCallType();
                result = result * 59 + ($callType == null ? 43 : $callType.hashCode());
                Object $callTime = this.getCallTime();
                result = result * 59 + ($callTime == null ? 43 : $callTime.hashCode());
                Object $callDuration = this.getCallDuration();
                result = result * 59 + ($callDuration == null ? 43 : $callDuration.hashCode());
                return result;
            }

            public String toString() {
                return "ContactPostBean.CallRecordVO(name=" + this.getName() + ", phone=" + this.getPhone() + ", callType=" + this.getCallType() + ", callTime=" + this.getCallTime() + ", callDuration=" + this.getCallDuration() + ")";
            }

            public CallRecordVO() {
            }

            public CallRecordVO(String name, String phone, String callType, String callTime, String callDuration) {
                this.name = name;
                this.phone = phone;
                this.callType = callType;
                this.callTime = callTime;
                this.callDuration = callDuration;
            }
        }

        public static class ContactVO implements Serializable {
            @SerializedName("name")
            String name;
            @SerializedName("phone")
            String phone;
            @SerializedName("lastTimeContacted")
            String lastTimeContacted;
            @SerializedName("timesContacted")
            String timesContacted;

            public String getName() {
                return this.name;
            }

            public String getPhone() {
                return this.phone;
            }

            public String getLastTimeContacted() {
                return this.lastTimeContacted;
            }

            public String getTimesContacted() {
                return this.timesContacted;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public void setLastTimeContacted(String lastTimeContacted) {
                this.lastTimeContacted = lastTimeContacted;
            }

            public void setTimesContacted(String timesContacted) {
                this.timesContacted = timesContacted;
            }

            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                } else if (!(o instanceof ContactPostBean.ContactVO)) {
                    return false;
                } else {
                    ContactPostBean.ContactVO other = (ContactPostBean.ContactVO)o;
                    if (!other.canEqual(this)) {
                        return false;
                    } else {
                        label59: {
                            Object this$name = this.getName();
                            Object other$name = other.getName();
                            if (this$name == null) {
                                if (other$name == null) {
                                    break label59;
                                }
                            } else if (this$name.equals(other$name)) {
                                break label59;
                            }

                            return false;
                        }

                        Object this$phone = this.getPhone();
                        Object other$phone = other.getPhone();
                        if (this$phone == null) {
                            if (other$phone != null) {
                                return false;
                            }
                        } else if (!this$phone.equals(other$phone)) {
                            return false;
                        }

                        Object this$lastTimeContacted = this.getLastTimeContacted();
                        Object other$lastTimeContacted = other.getLastTimeContacted();
                        if (this$lastTimeContacted == null) {
                            if (other$lastTimeContacted != null) {
                                return false;
                            }
                        } else if (!this$lastTimeContacted.equals(other$lastTimeContacted)) {
                            return false;
                        }

                        Object this$timesContacted = this.getTimesContacted();
                        Object other$timesContacted = other.getTimesContacted();
                        if (this$timesContacted == null) {
                            if (other$timesContacted != null) {
                                return false;
                            }
                        } else if (!this$timesContacted.equals(other$timesContacted)) {
                            return false;
                        }

                        return true;
                    }
                }
            }

            protected boolean canEqual(Object other) {
                return other instanceof ContactPostBean.ContactVO;
            }

            public int hashCode() {
                int result = 1;
                Object $name = this.getName();
                result = result * 59 + ($name == null ? 43 : $name.hashCode());
                Object $phone = this.getPhone();
                result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
                Object $lastTimeContacted = this.getLastTimeContacted();
                result = result * 59 + ($lastTimeContacted == null ? 43 : $lastTimeContacted.hashCode());
                Object $timesContacted = this.getTimesContacted();
                result = result * 59 + ($timesContacted == null ? 43 : $timesContacted.hashCode());
                return result;
            }

            public String toString() {
                return "ContactPostBean.ContactVO(name=" + this.getName() + ", phone=" + this.getPhone() + ", lastTimeContacted=" + this.getLastTimeContacted() + ", timesContacted=" + this.getTimesContacted() + ")";
            }

            public ContactVO() {
            }

            public ContactVO(String name, String phone, String lastTimeContacted, String timesContacted) {
                this.name = name;
                this.phone = phone;
                this.lastTimeContacted = lastTimeContacted;
                this.timesContacted = timesContacted;
            }
        }
}
